package com.framework.seedkit.ui.uiframe.vpagerSlip;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;

public class MainViewPager extends ViewPager {

	private boolean isCanScroll = true;

	public MainViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);

	}

	public void setCanScroll(boolean b){
		isCanScroll = b;
	}

	@Override
	public void scrollTo(int x, int y) {
		if(isCanScroll){
			super.scrollTo(x, y);
		}
	}
	
}
